cmake_minimum_required(VERSION 3.4.1)


# 子CMakeLists.txt 路径
add_subdirectory(./librtmp)
add_library( # Sets the name of the library.
             native-lib
             SHARED
             native-lib.cpp )

# 头文件
include_directories("inc")
# 编译参数
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L${CMAKE_SOURCE_DIR}/../jniLibs/${ANDROID_ABI}")

find_library( # Sets the name of the path variable.
              log-lib
              log )
# 编译库名称
target_link_libraries( # Specifies the target library.
                       native-lib
                       rtmp
                       x264
                       ${log-lib} )